package com.service.business.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.service.core.rest.request.PageRequest;
import com.service.core.rest.response.CommonPageRep;
import com.service.dao.model.MemberMiningOrder;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface MemberMiningOrderService extends IService<MemberMiningOrder> {

	/**
	 * 获取用户线性冻结记录列表
	 * @return
	 */
	CommonPageRep<MemberMiningOrder> pageByMemberIdAndCoins(PageRequest request, String coinsName);

	/**
	 * 统计用户线性冻结总资产
	 * @param memberId
	 * @param coinsId
	 * @return
	 */
	BigDecimal totalMiningFrostNum(Integer memberId, Integer coinsId,Integer orderId,Date someDay);

	/**
	 * 统计用户线性冻结总释放
	 * @param memberId
	 * @param coinsId
	 * @return
	 */
	BigDecimal totalMiningReleaseNum(Integer memberId, Integer coinsId, Integer orderId, Date someDay);

	/**
	 * @Description: 统计当前用户还有多少待释放数量
	 * @Author: ty
	 * @Date: 2021/4/30 13:46
	 * @param: [memberId, coinsId]
	 * @return: java.math.BigDecimal
	 **/
	BigDecimal totalWaitReleaseNum(Integer memberId, Integer coinsId);
}
